package cn.Y_Qiu.basic.util;

import lombok.Data;

@Data
public class Ajaxresult {
    private Boolean success = true;
    private String message = "操作成功！";
    private Object resultObj;

    public static Ajaxresult me(){
        return new Ajaxresult();
    }
    //链式编程
    public Ajaxresult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }
    //链式编程
    public Ajaxresult setMessage(String message) {
        this.success = false;
        this.message = message;
        return this;
    }
    public Ajaxresult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }

}

